#include<stdio.h>
int main()
{
	long int b;
	scanf("%ld",&b);
	int a=b%100;
	printf("%d\n",a);
	if(a>=3&&a<=5)
	{
		printf("spring");
	}
	else if(a>=6&&a<=8)
	{
		printf("summer");
	}
	else if(a>=9&&a<=11)
	{
		printf("autumn");
	}
	else
	{
		printf("winter");
	}
	return 0;
}
